package com.biz.primus.ms.depot.trans;


import com.biz.primus.common.utils.CopyUtils;
import com.biz.primus.ms.depot.dao.po.Depot;
import com.biz.primus.ms.depot.dao.ro.DepotRo;
import com.google.common.base.Function;

/**
 * Depot --> DepotRo
 *
 * @author zhangcheng
 * @date 2016/12/14
 * @see
 */
public class Depot2DepotRo implements Function<Depot, DepotRo> {
    @Override
    public DepotRo apply(Depot depot) {
        DepotRo depotRo = new DepotRo();
        if (depot != null) {
            CopyUtils.copyProperties(depot, depotRo);
        }
        return depotRo;
    }
}
